<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <title>number类型</title>
    <script>
        /* var age = 18;
        console.log(age);
        console.log(typeof age); */

        /* var price = 11.8;
        console.log(price);
        console.log(typeof price); */

        /* var max = -1 / 0;
        console.log(max);
        console.log(typeof max); */

        var num = parseFloat("a111");
        console.log(num);
        console.log(typeof num);

    </script>
</head>

<body>
</body>

</html>